/**
 * 
 */
package com.blacksee.bluetoothpoker.network;

import com.blacksee.bluetoothpoker.network.messages.NetMessage;

/**
 * Might be a timeout - we need the id of the device which is not accessible, or
 * device not found - than we need it again. 
 * 
 * @author plamKaTa
 */
public class BlueNetException extends Exception {
	
	private int failedDeviceID = -1;
	
	private String failedDeviceName;
	
	private NetMessage failedMessage;

	/**
	 * 
	 */
	public BlueNetException() {
		// TODO Auto-generated constructor stub
	}

	/**
	 * @param s
	 */
	public BlueNetException(String s) {
		super(s);
	}
	
	public BlueNetException(String s, int deviceID) {
		super(s);
		this.failedDeviceID = deviceID;
	}
	
	public BlueNetException(String s, int deviceID, String deviceName) {
		super(s);
		this.failedDeviceID = deviceID;
		this.failedDeviceName = deviceName;
	}

	public void setFailedDeviceID(int deviceID) {
		this.failedDeviceID = deviceID;
	}

	public int getFailedDeviceID() {
		return failedDeviceID;
	}

	public void setFailedDeviceName(String deviceName) {
		this.failedDeviceName = deviceName;
	}

	public String getFailedDeviceName() {
		return failedDeviceName;
	}

	public NetMessage getFailedMessage() {
		return failedMessage;
	}

	public void setFailedMessage(NetMessage failedMessage) {
		this.failedMessage = failedMessage;
	}

}
